import Vue from 'vue'
import Vuex from 'vuex'

import musiclist from './musiclist'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    loading: false,
    playTime: 123,
    playstate: false,
    play_img: '',
    toplist: [],
    login: false,
    userLoginState: false,
    userinfo: [JSON.parse(localStorage.getItem('userinfo'))] || [],
    searchLoaction: JSON.parse(localStorage.getItem('searchLoaction')) || []
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    musiclist
  }
})
